
<div class="wrap">
<div id="ajaxResponse1" class="ajaxResponse" {if $smarty.cookies.message != NULL}style="display:block"{/if}>{if $smarty.cookies.message != NULL}{$smarty.cookies.message}{/if}</div>
<h2>{TranslateTag}B_LABEL_PAYMENT_METHOD{/TranslateTag}</h2>
	<p>
            <a href="?{$smarty.server.QUERY_STRING}&act=addpaymentmethod">
            	<img src="../view/admin/images/object_create.png" alt="Create" />
            </a>
        </p>
	<table class="widefat">
		<thead>
		<tr>
			<th scope="col" width="5%" style="text-align: center">{TranslateTag}B_LABEL_ID{/TranslateTag}</th>
	        <th scope="col" width="35%">{TranslateTag}B_LABEL_NAME{/TranslateTag}</th>
            <th scope="col" width="35%">{TranslateTag}B_LABEL_LOGO{/TranslateTag}</th>
	        <th scope="col" width="5%">{TranslateTag}B_LABEL_DESCRIPTION{/TranslateTag}</th>
            <th scope="col" colspan="2" style="text-align:center">{TranslateTag}B_LABEL_ACTION{/TranslateTag}</th>
		</tr>
		</thead>
		<tbody id="paymentmethodtable">
			{foreach name=featured from=$PAYMENTMETHOD item=item}
				<tr id="pay_{$item->id}" class="{cycle values=,alternate}">
					<th scope='row' width="5%" style='text-align: center'>{$item->id}</th>
					<td width="35%">{$item->payment_method}</td>
                    <td width="25%" ><img src="../upload/payment/{$item->payment_logo}" /></td>
					<td width="25%" >{$item->description}</td>
					<td width="15%" style="text-align: center">
                    	<a href="?module={$smarty.get.module}&sub1=payment_method&act=editpaymentmethod&id={$item->id}" 
							class='edit'><img src="../view/admin/images/object_edit.png" alt="Edit" /></a></td>
					<td width="15%" style="text-align: center">
						<a onclick="onDeletePayment('?module={$smarty.get.module}&sub1=payment_method', '{$item->id}','{$item->payment_method}','pay_')" 
							class='delete'><img src="../view/admin/images/object_delete.png" alt="Delete" /></a></td>
				</tr>
			{/foreach}
		</tbody>
	</table>
	<p>
            <a href="?{$smarty.server.QUERY_STRING}&act=addpaymentmethod">
            	<img src="../view/admin/images/object_create.png" alt="Create" />
            </a>
        </p>
</div>